import { defineStore } from "pinia";

const useUserStore = defineStore('app-user-store', {
    state: () => ({
        userName: '', // user name
        loginName: '', // login name
        redirect: '', // last path
        token: '', // token
        lock: false // 锁屏
    }),
    persist: {
        storage: localStorage
    }
});

export default useUserStore